package cn.jlearn.proxy.common.pojo;

import cn.jlearn.proxy.common.enums.ChannelTypeEnum;
import org.tio.core.ChannelContext;
import org.tio.core.Tio;
import org.tio.core.intf.Packet;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @author qianyingchao
 * @version 1.0
 * @date 2021/5/10 6:06 下午
 */
public class ChannelManage {

    private static volatile ChannelManage cm;

    public static ChannelManage getInstance() {
        if (cm == null) {
            synchronized (ChannelManage.class) {
                if (cm == null) {
                    cm = new ChannelManage();
                }
            }
        }
        return cm;
    }


}
